package org.adultedu.service;

import org.adultedu.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {
    //查询所有学生
    List<Student> queryAllStudent();

    //查询特定的学生
    List<Student> queryUniqueStudent(Student student);

    List<Student> queryLimitStudent(String name,String sfz,String tele,String email,Integer currentsize,Integer pagesize);

    Integer getStuNum(String name,String sfz,String tele,String email);

    //修改学生信息
    int updateStudent(Student student);

    //插入学生信息
    int insertStudent(Student student);

    //删除学生记录
    int deleteStudent(String sid);

    //得到身份证
    String getSfzBySid(String sid);

    // 重置学生账户
    int resetStudentAccount(String sid,String pwd);

    //封禁学生账户
    int disableAccount(String sid,String reason,String other);

    int enableAccount(@Param("sid") String sid);

    List getSaleStudent(String cid);
}
